<?php 
/**
 * Support公共函数
 * */
	
/**
* 返回具体网站的模板字段对应数组
*
* @param   string      		 $web_type           网站类型
* @return  array
*/
function  getTemplateInit($web_type)
{
	$webArray = array();
	
	switch ($web_type)//网站类型
	{
		case 'wondershare'://表示取最新
			//wondershare文章模板
			$webArray['article'] = array('table' => '13', 'temKey' => '19965', 'baseTitle' => '19978' ,
											'temTitle' => '19964', 'temKeywords' => '19914', 'temDescription' => '19915');
			//wondershare产品
			$webArray['products'] = array('table' => '26', 'pId' => '20044', 'pName' => '20045',
											'comName' => '20252', 'temTitle' => '20894', 'temKeywords' => '20895', 'temDescription' => '20896');
			//wondershare文章单页模板
			$webArray['single_article'] = array('table' => '31', 'temKey' => '20160', 'baseTitle' => '20161',
												'temTitle' => '20162', 'temKeywords' => '20163', 'temDescription' => '20164');
			//wondershare对比表
			$webArray['comparison'] = array('table' => '32', 'temName' => '20181',
											'temTitle' => '20175', 'temKeywords' => '20176', 'temDescription' => '20177');
			
			$webArray['products_category_one'] = array('table' => '41', 'cName' => '20235');
			
			$webArray['single_products'] = array('table' => '45', 'pId' => '20350', 'defaultKey' => '20361');
			
			$webArray['order_index_info'] = array('table' => '76');
			
			$webArray['order_category'] = array('table' => '77', 'categoryName' => '20794', 'temDescription' => '20797');
			//support对比列表
			$webArray['comparison_list'] = array('table' => '78');
			
			$webArray['order_info'] = array('table' => '79', 'temKey' => '20810', 'baseTitle' => '20811' ,
											'temTitle' => '20812', 'temKeywords' => '20813', 'temDescription' => '20814');
			
			$webArray['products_index_info'] = array('table' => '80');
			
			$webArray['products_category'] = array('table' => '81', 'temKey' => '20836', 
													'whereRelatedProducts' => ' AND p.product_brand = "Wondershare" AND !FIND_IN_SET( p.product_id,  "87,88,89,90,91,92,99,100,101,102,103,104" ) ');
			
			$webArray['how_tos_list'] = array('table' => '83');
			
			$webArray['getting_started_list'] = array('table' => '84');
			
			$webArray['all_download_info'] = array('table' => '86');
			
			//support产品
			$webArray['products_info'] = array('table' => '88', 'pId' => '20892', 'pName' => '20893',
												'pCbsId' => '21602', 'temTitle' => '20894', 'temKeywords' => '20895', 'temDescription' => '20896');
			
			$webArray['products_howtos_info'] = array('table' => '90', 'pId' => '20912', 'pName' => '20913',
														'pCbsId' => '21603', 'temTitle' => '20914', 'temKeywords' => '20915', 'temDescription' => '20916');
			
			$webArray['products_help_info'] = array('table' => '91', 'pId' => '20938', 'pName' => '20939',
													'pCbsId' => '21604', 'temTitle' => '20928', 'temKeywords' => '20929', 'temDescription' => '20930',
													'temHelpId' => '20926', 'temHelpTitle' => '20927', 'temHelpType' => '20935');
			
			$webArray['faq_info'] = array('table' => '92', 'temKey' => '20948', 'baseTitle' => '20949',
											'temTitle' => '20950', 'temKeywords' => '20951', 'temDescription' => '20952');
			
			$webArray['products_video_info'] = array('table' => '93', 'pId' => '20961', 'pName' => '20962',
													'pCbsId' => '', 'temTitle' => '20963', 'temKeywords' => '20964', 'temDescription' => '20965');
			
			$webArray['products_history_info'] = array('table' => '94', 'pId' => '20974', 'pName' => '20975',
														'pCbsId' => '21605', 'temTitle' => '20976', 'temKeywords' => '20977', 'temDescription' => '20978');
			
			$webArray['products_suggestion_info'] = array('table' => '95', 'pId' => '20986', 'pName' => '20987',
															'pCbsId' => '21606', 'temTitle' => '20990', 'temKeywords' => '20988', 'temDescription' => '20989');
			
			$webArray['map_info'] = array('table' => '99');
			
			
			$webArray['is_article_single_page'] = 1; //是否有文章单页
			$webArray['is_products_single_page'] = 1; //是否有产品单页
			
			$webArray['web_fage'] = 1;
	
			$webArray['web_domain'] = 'support.wondershare.com';
			$webArray['url_type'] = 'support';
			$webArray['url_name'] = 'wondershare.com';
			break; 
			
		case 'iskysoft'://表示为iskysoft
			//iskysoft文章模板
			$webArray['article'] = array('table' => '71', 'temKey' => '20681', 'baseTitle' => '20682',
										'temTitle' => '20684', 'temKeywords' => '20686', 'temDescription' => '20687');
			//iskysoft产品
			$webArray['products'] = array('table' => '137', 'pId' => '21669', 'pName' => '21670',
										'comName' => '21671', 'temTitle' => '21672', 'temKeywords' => '21673', 'temDescription' => '21674');
			$webArray['single_products'] = array('table' => '147', 'pId' => '21726', 'defaultKey' => '21728');
			
			$webArray['order_index_info'] = array('table' => '149');
			
			$webArray['order_category'] = array('table' => '150', 'categoryName' => '21737', 'temDescription' => '21740');
			
			$webArray['order_info'] = array('table' => '151', 'temKey' => '21741', 'baseTitle' => '21742',
											'temTitle' => '21743', 'temKeywords' => '21744', 'temDescription' => '21745');
			
			$webArray['products_index_info'] = array('table' => '152');
			
			$webArray['products_category'] = array('table' => '153', 'temKey' => '21749', 'categoryName' => '21750',
													'whereRelatedProducts' => ' AND p.product_brand = "iSkysoft"  ');
			
			$webArray['getting_started_list'] = array('table' => '154');
			
			$webArray['all_download_info'] = array('table' => '155');
			
			//support产品
			$webArray['products_info'] = array('table' => '156', 'pId' => '21760', 'pName' => '21762',
												'pCbsId' => '21761', 'temTitle' => '21764', 'temKeywords' => '21765', 'temDescription' => '21766');
			
			$webArray['products_howtos_info'] = array('table' => '157', 'pId' => '21767', 'pName' => '21769',
														'pCbsId' => '21768', 'temTitle' => '21770', 'temKeywords' => '21771', 'temDescription' => '21772');
			
			$webArray['products_help_info'] = array('table' => '158', 'pId' => '21773', 'pName' => '21775' ,
													'pCbsId' => '21774', 'temTitle' => '21779', 'temKeywords' => '21780', 'temDescription' => '21781',
													'temHelpId' => '21776', 'temHelpTitle' => '21777', 'temHelpType' => '21778');

			
			$webArray['faq_info'] = array('table' => '159', 'temKey' => '21782', 'baseTitle' => '21783',
											'temTitle' => '21784', 'temKeywords' => '21785', 'temDescription' => '21786');
			
			$webArray['products_history_info'] = array('table' => '160', 'pId' => '21787', 'pName' => '21789',
														'pCbsId' => '21788', 'temTitle' => '21790', 'temKeywords' => '21791', 'temDescription' => '21792');
			
			$webArray['products_suggestion_info'] = array('table' => '163', 'pId' => '21799', 'pName' => '21801',
														'pCbsId' => '21800', 'temTitle' => '21802', 'temKeywords' => '21803', 'temDescription' => '21804');
			
			$webArray['map_info'] = array('table' => '162');
			$webArray['how_tos_list'] = array('table' => '166');
			
			
			$webArray['is_article_single_page'] = 0; //是否有文章单页
			$webArray['is_products_single_page'] = 1; //是否有产品单页
			$webArray['recommend_products_limit'] = 5; //首页推荐产品条数
			$webArray['web_fage'] = 8;
			$webArray['web_domain'] = 'support.iskysoft.com';
			$webArray['url_type'] = 'support';
			$webArray['url_name'] = 'iskysoft';
	
			break; 
	}
	return  $webArray;
}

?>